//
//  UIViewController+LoadingPresentingBacking.h
//  Elephant
//
//  Created by enghou on 2018/5/21.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SVProgressHUD.h>
@interface UIViewController (LoadingPresentingBacking)<UIViewControllerTransitioningDelegate>

-(UIView *)inputAccessView;

-(void)presentVC:(UIViewController *)vc;

-(void)presentVC:(UIViewController *)vc completeBlock:(void(^)(void))complete;

-(void)beginLoading;

-(void)endLoading;

-(void)alertSome:(NSString *)msg;

-(void)alertSome:(NSString *)msg success:(BOOL)success;


-(void)alertSome:(NSString *)msg sureAction:(void(^)(void))act;

-(void)alertSome:(NSString *)msg sureAction:(void (^)(void))act cancelAct:(void(^)(void))cancel;

-(void)alertSome:(NSString *)msg sureTitle:(NSString *)sureTitle sureAction:(void(^)(void))sureAct cancelTitle:(NSString *)cancelTitle cancelAct:(void(^)(void))cancel;

-(void)push:(UIViewController *)vc;

-(void)pop;

-(UIButton *)defaultBackButton;

-(void)dismissBackButton;

#pragma mark 网络出状况统一走这个回调
-(void)commonNetFailBlockWithBlock:(void(^)(void))block;

#pragma mark 网络请求成功后仅仅是弹出到上一个界面或者出错仅仅是简单的报错
-(void)commonPopBlockWithModel:(BaseModel *)model;

@end
